package 网络编程;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class test {
    public static void main(String[] args) throws UnknownHostException {
        InetAddress ina = InetAddress.getByName("192.168.3.3");
        System.out.println(ina.getHostName());
        System.out.println(ina.getHostAddress());
    }
}
